﻿using System;
using System.CodeDom;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Company.Logger.Logs
{
    public class Log
    {
        #region Fields
        private readonly DateTime _logTime = DateTime.Now;
        private readonly string _message = "";
        private readonly LogLevel _level = LogLevel.Info;
        private readonly int _id = 0;
        #endregion
        public Log()
        {
            
        }
        public Log(int id, DateTime logTime, string message, LogLevel level)
        {
            _logTime = logTime;
            _message = message;
            _level = level;
            _id = id;
        }

        #region Properties
        public int Id => _id;

        public DateTime LogTime => _logTime;

        public string Message => _message;

        public LogLevel Level => _level;
        #endregion
    }
}
